package com.pjs.tdd;
import static com.pjs.tdd.Money.money;
public class PositiveTransaction extends AbstractTransaction {
	
	public static Transaction positiveTransaction(final Money amount){
		return new PositiveTransaction(amount);
	}

	public PositiveTransaction(final Money amount) {
		super(TransactionType.positive,amount);
	}
	
	public Money apply(Money money){
		return money(money.amount()+this.money.amount(),this.money.currency());
	}

}
